using System;
using System.Net;
using Microsoft.Office.Interop.Excel;
using MingleReport;

namespace MingleReport.IntegrationTests
{
    internal class StubSession : IMingleSession
    {
        private readonly Application application;
        private CookieContainer loginCookie;
        private string serverUrl;
        private string projectId;

        public StubSession(Application application)
        {
            this.application = application;
        }

        public CookieContainer LoginCookie
        {
            get { return loginCookie; }
            set { loginCookie = value; }
        }

        public string ServerUrl
        {
            get { return serverUrl; }
            set { serverUrl = value; }
        }

        public string ProjectId
        {
            get { return projectId; }
            set { projectId = value; }
        }

        public Workbook CurrentWorkbook
        {
            get { return application.Workbooks[1]; }
            set { throw  new NotImplementedException(); }
        }
    }
}